package com.dao.c.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张幸晔
 * @since 2025-02-22
 */
@Data
@TableName("model")
public class Model implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("server_url")
    private String serverUrl;

    @TableField("url")
    private String url;

    @TableField("api")
    private String api;

    @TableField("modelname")
    private String modelname;

    @TableField("intro")
    private String intro;

    @TableField("avatar")
    private String avatar;
    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
    @TableField("createtime")
    private LocalDateTime createtime;
    @DateTimeFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
    @TableField("updatetime")
    private LocalDateTime updatetime;

    @TableField("status")
    private Integer status;

    @TableField("served_model_name")
    private String servedModelName;
    @TableField("category_id")
    private Integer categoryId;
}
